home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 4,101 to 4,200 / aol-file-protocol-4400-4101-to-4200.zip / AOLDLs / ADV - Articles & Misc / HUGE Peeks, Pokes, chart & MORE / PROGRAMMING.shk / PROGRAMING.INFO (.txt) < prev    next >
AppleWorks Document  |  1990-02-17  |  26KB  |  466 lines

  1. O=====|====|====|====|====|====|====|====|====|====|====|====|====|====|====|===
  2. DOS 3.3 COMMANDS
  3. APPEND    CATALOG   EXEC      INT       MON       PR#       SAVED
  4. BLOAD     CHAIN     FP        LOAD      NOMON     READ      UNLOCKC
  5. BRUN      CLOSE     IN#       LOCK      OPEN      RENAME    WRITED
  6. BSAVE     DELETE    INIT      MAXFILES  POSITION  RUN       VERIFYO
  7. M_____________________________________________________________________________$
  8. __________________________________
  9. APPLESOFT BASIC RESERVED WORDS
  10. ABS       DEL       HCOLOR=   LEFT$     ON        REM       SIN       TRACEK
  11. AND       DIM       HGR       LEN       ONERR     RESTORE   SPC(      USRK
  12. ASC       DRAW      HGR2      LET       OR        RESUME    SPEED=    VALL
  13. AT        END       HIMEM:    LIST      PDL       RETURN    SQR       VLINL
  14. ATN       EXP       HLIN      LOAD      PEEK      RIGHT$    STEP      VTABL
  15. CALL      FLASH     HOME      LOG       PLOT      RND       STOP      WAITM
  16. CHR$      FN        HPLOT     LOMEM:    POKE      ROT=      STORE     XPLOTM
  17. CLEAR     FOR       HTAB      MID$      POP       RUN       STR$      XDRAWI
  18. COLOR=    FRE       IF        NEW       POS       SAVE      TAB(      &I
  19. CONT      GET       IN#       NEXT      PRINT     SCALE=    TAN       ?B
  20. COS       GOSUB     INPUT     NORMAL    PR#       SCRN(     TEXTB
  21. DATA      GOTO      INT       NOT       READ      SGN       THEN@
  22. DEF       GR        INVERSE   NOTRACE   RECALL    SHLOAD    TO
  23. INTEGER BASIC RESERVED WORDS
  24. ABS       CON       GOTO      LET       NOTRACE   PRINT     SGN       VTABM
  25. AND       DEL       GR        LIST      ON        PR#       STEP      XPLOTI
  26. ASC       DIM       HLIN      LOAD      OR        REM       TAB(      &I
  27. AT        DSP       TAB(      MAN       PDL       RETURN    TEXT      ?B
  28. AUTO      END       IF        MOD       PEEK      RND       THEN@
  29. CALL      FOR       IN#       NEW       PLOT      RUN       TOC
  30. CLR       FP        INPUT     NEXT      POKE      SAVE      TRACEB
  31. COLOR=    GOSUB     LEN       NOT       POP       SCRN(     VLIN
  32. EQUIVALENT INTEGER BASIC COMMANDS
  33.                INTEGER BASIC
  34. APPLESOFT       EQUIVALENT
  35. CLEAR..........CLR
  36. CONT...........CON
  37. HTAB...........TAB
  38. HOME...........CALL -936
  39. FLASH..........POKE 50,63
  40. INVERSE........POKE 50,127
  41. NORMAL.........POKE 50,255
  42. <>.............#O
  43. M_____________________________________________________________________________$
  44. __________________________________
  45. SYMBOLS
  46. SYMBOL
  47. \/ WHAT IT STANDS FOR
  48. ]  Applesoft BASIC prompt                    $  hex number prefixE
  49. >  Integer BASIC prompt                      @  octal number prefixH
  50. *  Monitor prompt                            '  ASCII character prefixF
  51. !  mini-assembler prompt                     #  immediate addressingE
  52. ?  usual INPUT prompt in a BASIC program     () indirect addressingE
  53. &  ampersand                                 .  assembler directive
  54. ^  exponentiationO
  55. M_____________________________________________________________________________$
  56. __________________________________
  57. SOFT SWITCHES
  58. POKE (-16304,0) 49232,0 Graphics
  59. POKE (-16303,0) 49233,0 Text
  60. POKE (-16302,0) 49234,0 Full Screen Graphics4
  61. POKE (-16301,0) 49235,0 Split Screen Text/Graphics
  62. POKE (-16300,0) 49236,0 Page One"
  63. POKE (-16299,0) 49237,0 Page Two
  64. POKE (-16298,0) 49238,0 Lo-Res 
  65. POKE (-16297,0) 49239,0 Hi-ResO
  66. M_____________________________________________________________________________$
  67. __________________________________
  68. CURSOR CALLS
  69.    CALL      OTHER EQUIV.  EXPLANATION
  70. -> CALL -1036..............Moves cursor RIGHT.
  71. <- CALL -1008..............Moves cursor LEFT,
  72. /\ CALL -998...............Moves cursor UP.
  73. \/ CALL -922...............Moves cursor DOWN7
  74. \/ CALL -926...CALL -626...Performs a carriage returnC
  75.    CALL -912...............Scrolls current text screen up one row-
  76.    CALL -936.....ESC @.....HOMEs the cursorB
  77. -> CALL -868.....ESC E.....Clears text line from cursor to rightK
  78. I\/ CALL -958.....ESC F.....Clears text from cursor position to bottom of 
  79. screenO
  80. M_____________________________________________________________________________$
  81. __________________________________
  82. HI-RES COLORS             LO-RES AND DOUBLE HI-RES COLORS
  83. 0 Black 1  4 Black 2 | 0 Black      4 Dark Green   8  Brown   12 Bright GreenI
  84. 1 Green    5 Orange  | 1 Magenta    5 Grey 1       9  Orange  13 YellowG
  85. 2 Violet   6 Blue    | 2 Dark Blue  6 Medium Blue  10 Grey 2  14 AquaH
  86. 3 White 1  7 White 2 | 3 Violet     7 Light Blue   11 Pink    15 WhiteO
  87. M_____________________________________________________________________________$
  88. __________________________________
  89. ONERR ERROR CODES
  90. DOS 3.3                   ProDOS                  BASIC
  91. 1  Language Not Available 2  Range Error          0   ?Next Without ForE
  92. 2  Range Error            3  No Device Connected  16  ?Syntax ErrorM
  93. 3  Range Error            4  Write-Protected      22  ?Return Without GosubD
  94. 4  Write-Protected        5  End of Data          42  ?Out of DataI
  95. 5  End of Data            6  Path Not Found       53  ?Illegal QuantityA
  96. 6  File Not Found         8  I/O Error            69  ?OverflowF
  97. 7  Volume Mismatch        9  Disk Full            77  ?Out of MemoryJ
  98. 8  I/O Error              10 File Locked          90  ?Undef'd StatementF
  99. 9  Disk Full              11 Invalid Parameter    107 ?Bad SubscriptF
  100. 10 File Locked            12 No Buffers Available 120 ?Redim'd ArrayI
  101. 11 Syntax Error           13 File Type Mismatch   133 ?Division by ZeroF
  102. 12 No Buffers Available   14 Program Too Large    163 ?Type MismatchH
  103. 13 File Type Mismatch     15 Not Direct Command   176 ?String Too LongL
  104. 14 Program Too Large      16 Syntax Error         191 ?Formula Too ComplexI
  105. 15 Not Direct Command     17 Directory Full       224 ?Undef'd Function@
  106.                           18 File Not Open        254 ?ReenterO
  107.                           19 Duplicate File Name  255 (<Control-C> interrupt)(
  108.                           20 File Busy1
  109.                           21 File(s) Still OpenO
  110. M_____________________________________________________________________________$
  111. __________________________________
  112. APPLE MAIN MEMORY ALLOCATION
  113. CBLOCK OF MEMORY                     POSITIVE     NEGATIVE ADDRESS  
  114. HEXADECIMAL
  115. Zero Page RAM.......................0-255..........................$0000.00FFO
  116. System Stack........................256-511........................$0100.02FFO
  117. Keyboard Input Buffer...............512-76.........................$0200.02FFO
  118. Monitor Variables/Vectors...........768-1023.......................$0300.03FFO
  119. Text/Lo-Res Page 1..................1024-2047......................$0400.07FFO
  120. Text/Lo-Res Page 2..................2048-3071......................$0800.0BFFO
  121. User RAM............................3072-8191......................$0C00.1FFFO
  122. Hi-Res Page 1.......................8192-16383...-57344 to -49153..$2000.3FFFO
  123. Hi-Res Page 2.......................16384-24575..-49152 to -40961..$4000.5FFFO
  124. User RAM............................24576-38400..-40960 to -27137..$6000.95FFO
  125. DOS.................................38400-44151..-27136 to -16385..$9600.BFFFO
  126.    DOS file buffers (Maxfiles = 3)..38400-40191..-27136 to -25345..$9600.9CFFO
  127.    Main DOS routines................40192-43772..-25344 to -21764..$9D00.AAFCO
  128.    File Manager.....................43773-47028..-21763 to -18508..$AAFD.B7B4O
  129.    RWTS.............................47029-44151..-18507 to -16385..$B7B5.BFFFO
  130. Input/Output Peripheral Cards.......49152-53247..-16384 to -12289..$C000.CFFFO
  131.    Built-In I/O.....................49152-49279..-16384 to -16257..$C000.C079O
  132.    Peripheral Card I/O Slots 0-7....49280-49407..-16256 to -16127..$C080.C0FFO
  133.    Peripheral Card PROM Slots 1-7...49408-51199..-16128 to -14337..$C100.C7FFO
  134.    Expansion ROM....................51200-53247..-14336 to -12289..$C800.CFFFO
  135. System ROM..........................53248-65535..-12288 to -1......$D000.FFFFO
  136.    Applesoft ROM....................53248-63487..-12288 to -2049...$D000.F7FFO
  137.    Monitor ROM......................63488-65535...-2048 to -1......$F800.FFFFO
  138. M_____________________________________________________________________________$
  139. __________________________________
  140. APPLE MAIN MEMORY MAP
  141.                 __________________-
  142.     -1 / 65536 |___
  143. MONITOR ROM
  144. ____| $FFFF+
  145.  -2048 / 63488 |                  | $F800%
  146.                |                  |%
  147.                |  APPLESOFT ROM   |%
  148.                |                  |%
  149.                |__________________|+
  150. -12288 / 53248 |                  | $D000'
  151.                |__
  152. EXPANSION ROM
  153. ___|+
  154. -14336 / 51200 |CUSTOM PROM SPACE | $C800'
  155.                |
  156. FOR CARDSLOTS 1-7
  157. -16384 / 49152 |                  | $C000%
  158.                |                  |%
  159.                |                  |%
  160.                |                  |+
  161. -20480 / 45056 |       DOS        | $B000%
  162.                |                  |%
  163.                |                  |%
  164.                |                  |+
  165. -24576 / 40960 |                  | $A000%
  166.                |                  |9
  167. -27136 / 38400 |------------------| $9600 DEFALUT HIMEM:
  168.                |                  |       IF DOS IS USED+
  169. -28672 / 36864 |                  | $9000%
  170.                |                  |%
  171.                |                  |%
  172.                |                  |+
  173. -32768 / 32768 |                  | $8000%
  174.                |     USER RAM     |%
  175.                |                  |%
  176.                |                  |+
  177. -36864 / 28672 |                  | $7000%
  178.                |                  |%
  179.                |                  |%
  180.                |__________________|+
  181. -40960 / 24576 |                  | $6000%
  182.                |                  |%
  183.                |                  |%
  184.                |  HI-RES PAGE 2   |+
  185. -45056 / 20480 |                  | $5000%
  186.                |                  |%
  187.                |                  |%
  188.                |__________________|+
  189. -49152 / 16384 |                  | $4000%
  190.                |                  |%
  191.                |                  |%
  192.                |  HI-RES PAGE 1   |+
  193. -53248 / 12288 |                  | $3000%
  194.                |                  |%
  195.                |                  |%
  196.                |__________________|+
  197.  -57344 / 8192 |                  | $2000%
  198.                |                  |%
  199.                |     USER RAM     |%
  200.                |                  |+
  201.           4096 |__________________| $1000-
  202.           3072 |
  203. TEXT/LO-RES PAGE 2
  204. | $0C00;
  205.           2048 |
  206. TEXT/LO-RES PAGE 1
  207. | $0800 DEFAULT LOMEM+
  208.           1024 |__________________| $0400+
  209.              0 /                  \ $0000&
  210.               /                    \'
  211.              /______________________\/
  212.         1024 |__
  213. MONITOR VARIABLES
  214. ___| $0400/
  215.          768 |__
  216. KEY. INPUT BUFFER
  217. ___| $0300/
  218.          512 |_____
  219. SYSTEM STACK
  220. _____| $0200/
  221.          256 |____
  222. ZERO PAGE RAM
  223. _____| $0100/
  224.            0                            $0000O
  225. M_____________________________________________________________________________$
  226. __________________________________
  227. INVALUABLE PROGRAMMING INFORMATION
  228. LTo POKE a value (0-65535) into two consecutive bytes, follow this procedure 7
  229. where B1 and B2 are the two bytes and V is the value::
  230.           
  231. POKE B1,V-INT(V/256)*256: POKE B2,INT(V/256)
  232. In order to PEEK two bytes, do this where B1 and B2 are the two bytes:#
  233.           
  234. PEEK(B1)+PEEK(B2)*256
  235. HVariable names may be up to 239 characters long, but only the first two %
  236. characters are considered by BASIC.N
  237. LTo run the mini-assembler, load Integer BASIC into the language card, enter 
  238. the monitor, and type F666G.P
  239. NTo disable the AUTO function in Integer BASIC, execute a <Control-X> and then 
  240. enter the MAN command.-
  241. To execute a GOTO in immediate mode, enter:!
  242.           POKE 51,0: GOTO line#,
  243. For a better random number generator, use:/
  244.           INT(RND(PEEK(78)+PEEK(79)*256)*N+1)(
  245.      where N is the high number limit.9
  246. To scrunch your program listings, execute a POKE 33,33.2
  247. To obtain the results of MOD in Applesoft BASIC:$
  248.           remainder=X-(INT(X/Y)*Y)3
  249.      where X and Y are the numbers to be divided.P
  250. NTo turn on the Mouse Character set, print a CHR$(27) (which is Esc).  To turn J
  251. Hoff the alternate set, print CHR$(24).  Only for Apple IIc, IIc+, IIgs, 
  252. or enhanced IIe.?
  253. To round a number N digits to the right of the decimal point:!
  254.           X=INT(X*10^N+.5)/10^N*
  255. To print 40-column text screen page one:
  256.           10 ? CHR$(4); "PR#1": PRINT CHR$(9); "80N"9
  257.           20 FOR H=1024 TO 1104 STEP 40: FOR J=0 TO 896+
  258.           30 FOR K=0 TO 39: A=PEEK(J+K+H)N
  259. L          40 A=A+(A<32)*192: A=A+(A<64)*128: A=A+(A<96)*64: A=A+(A<128)*64: 
  260. A=A+(A<160)*64.
  261.           50 ? CHR$(A);: NEXT K: ?: NEXT J,H#
  262.           60 ?: ? CHR$(4); "PR#0"
  263. To correct a "No Buffers Available" message, set MAXFILES to 3 or less.D
  264. To save a program that is in memory while DOS 3.3 or ProDOS isn't:I
  265.           1. Enter the monitor               5. Enter the monitor againF
  266.           2. Enter 4000<800.3FFFM            6. Enter 800<4000.8000MA
  267.           3. Enter Control-C                 7. Enter Control-C6
  268.           4. Boot a DOS disk                 8. LISTM
  269. KTo delete program lines greater than 63999, add this line (may be any line 
  270. number) and GOTO it:
  271. N          5000 A=PEEK(121)+PEEK(122)*256: A=A+3: POKE A-2,0: POKE A-1,0: POKE +
  272. 175,A-INT(A/256)*256: POKE 176,INT(A/256)
  273. In Applesoft BASIC, line numbers range from 0 through and including 63999.J
  274. In Integer BASIC, line numbers range from 0 through and including 32767.K
  275. IWhen a negative decimal memory address is given, add 65536 to obtain the I
  276. Gpositive equivalent.  Example: -21503 plus 65536 equals 44033.  In the I
  277. Gcase that your brain or your calculator does not have a -/+ key, enter F
  278. Dthe negative address without the negative sign, subtract 65536, and J
  279. Hignore the negative sign given in the answer.  Example: 21503 (negative @
  280. address) minus 65536 equals -44033 (ignore the negative sign).N
  281. LWhen a positive decimal memory address is given, subtract 65536 to find the A
  282. negative equivalent.  Example: 49152 minus 65536 equals -16384.N
  283. LAnother way to find an equivalent (negative or positive) is to subtract the K
  284. Iaddress (if negative, do not enter a negative sign) from 65536.  In your C
  285. Amind, add a negative sign to the answer if you wanted a negative I
  286. Gequivalent.  Example: 65536 minus 62436 (positive address) equals 3100 I
  287. G(negative equivalent; add a negative sign mentally).  Another example: I
  288. G65536 minus 3082 (negative address excluding the negative sign) equals 
  289. 62454 (positive equivalent).P
  290. NEight bits equal one byte; Four bytes equal one nibble; One nibble equals one 
  291. hexadecimal digit.P
  292. NMSB is the abbreviation for Most Significant Byte (in $AC01, the MSB is $AC); K
  293. ILSB is the abbreviation for Least Significant Byte (in $AC01, the LSB is 
  294. M_____________________________________________________________________________$
  295. __________________________________O
  296. M_____________________________________________________________________________$
  297. __________________________________
  298. MACHINE
  299. LANGUAGE
  300. PROGRAMMING
  301. INFORMATION
  302. 6502'S INTERNAL REGISTERS
  303. (all take up one byte except PC which uses two bytes)
  304. A  = accumulator                   PC = program counter7
  305. X  = X index register              S  = stack pointerO
  306. Y  = Y index register              P  = processor status register (see below)O
  307. M_____________________________________________________________________________$
  308. __________________________________
  309. STATUS FLAGS
  310. MSB           LSB
  311. N = negative result                I = IRQ (Interrupt ReQuest) disable4
  312. V = overflow                       Z = zero result0
  313. B = BRK instruction                
  314.  = carry/
  315. D = decimal mode                   C = borrowO
  316. M_____________________________________________________________________________$
  317. __________________________________
  318. LOGICAL OPERATORS--BOOLEAN LOGIC
  319.    AND                 INCLUSIVE OR             EXCLUSIVE OR<
  320. 01011001                 01101001                 01001011;
  321.  |     |                 |||||  |                  ||  ||<
  322. 01100101                 10111000                 00101101<
  323. --------                 --------                 --------<
  324. 01000001                 11111001                 01100110
  325. If both bits are on,     If either or both        If either bit is on,K
  326. the result bit is on.    bits are on, the         but not if both are on,I
  327.                          result bit is on.        the result bit is on.
  328. M_____________________________________________________________________________$
  329. __________________________________
  330. INVALUABLE MACHINE LANGUAGE INFORMATION
  331. The monitor always uses hexadecimal; Dollar signs are not needed.H
  332. To enter the monitor, enter CALL -151; To leave it, enter <Control-C>.,
  333. To look at one address, type that address.P
  334. NTo list more than one address, type the first and last addresses to be looked 
  335. at separated by a period.I
  336. GType a period followed by the last address to be looked at to see more ?
  337. addresses starting at the last address printed on the screen.J
  338. To look at the content of the next eight addresses, just press <Return>.N
  339. LTo enter data into memory, type the first address in the range of addresses I
  340. Gto have data put into them, follow it by a colon, and begin typing the 
  341. data./
  342. To move a block of data in RAM, type this in:
  343.           addr1<add2.addr3MO
  344. M     where addr1 is the starting address of the new block location, addr2 is F
  345. Dthe starting address of the current location, and addr3 is the last K
  346. Iaddress in the current location.  Notice the "M" (which stands for Move) 
  347. at the end of the commands.L
  348. JMake sure, when moving a block of code, to change all branching addresses     
  349. within.E
  350. To verify (or compare) two blocks of memory, follow this procedure:
  351.           addr1<addr2.addr3VP
  352. N     where addr1 is the starting address of either block, and addr2 and addr3 K
  353. Iare the first and last addresses of the other, respectively.  Notice the F
  354. D"V" (for Verify) at the end of the commands.  If the two blocks are J
  355. Hexactly alike, the monitor returns to the prompt symbol.  If there is a J
  356. Hdifference between the two, the monitor prints the address of the first D
  357. block, its content, and the content of the differing second block.L
  358. JTo disassemble 20 lines of instructions, type the beginning address to be H
  359. Fdisassembled followed by an "L" for list.  Just entering an "L" again %
  360. will disassemble the next 20 lines.K
  361. ITo execute a machine language program, type the beginning address of the #
  362. program followed by a "G" for Go.P
  363. NTo direct output to the printer while in the monitor, type "1 <Control-P>" (1 
  364. stands for slot #1).J
  365. HImmediate means "put this number in;" absolute means "put the number in $
  366. that's contained in this address."O
  367. MThe beginning address of the mini-assembler is 2048 ($800) and the length is 
  368. 328 ($148) bytes.O
  369. MIn order to display the current content of all the internal registers, enter 
  370. <Control-E>.H
  371. FTo change the 6502's internal registers, type <Control-E>, colon, the A
  372. register, and then the number to be plugged into that register.
  373. M_____________________________________________________________________________$
  374. __________________________________
  375. THE 6502 INSTRUCTION SET
  376.                     ASSEMBLER COMMAND ABBREVIATION3
  377. HEXADECIMAL OPERATION CODE(S)    \/     OPERATIONL
  378. J69, 65, 75, 6D, 7D, 79, 61, 71 = ADC = ADD memory to the accumulator with 
  379. carryG
  380. E29, 25, 35, 2D, 3D, 39, 21, 31 = AND = logically AND memory with the 
  381. accumulatorO
  382. M            0A, 06, 16, 0E, 1E = ASL = shift memory of the accumulator 1 bit 
  383. to the left>
  384.                             90 = BCC = branch on carry clear<
  385.                             80 = BCS = branch on carry set>
  386.                             F0 = BEQ = branch on result zeroN
  387.                         24, 2C = BIT = test memory bits with the accumulator?
  388.                             30 = BMI = branch on result minusB
  389.                             D0 = BNE = branch on result not zero>
  390.                             10 = BPL = branch on result plus5
  391.                             00 = BRK = forced breakA
  392.                             50 = BVC = branch on overflow clear?
  393.                             70 = BVS = branch on overflow set9
  394.                             18 = CLC = clear carry flagF
  395.                             D8 = CLD = clear decimal arithmetic modeD
  396.                             58 = CLI = clear interrupt disable bit<
  397.                             B8 = CLV = clear overflow flagK
  398. C9, C5, D5, CD, DD, D9, C1, D1 = CMP = compare memory and the accumulatorF
  399.                     E0, E4, EC = CPX = compare memory and X registerF
  400.                     C0, C4, CC = CPY = compare memory and Y register>
  401.                 C6, D6, CE, DE = DEC = decrement memory by 1B
  402.                             CA = DEX = decrement X register by 1B
  403.                             88 = DEY = decrement Y register by 1O
  404. M49, 45, 55, 4D, 5D, 59, 41, 51 = EOR = logically EXCLUSIVE-OR memory and the 
  405. accumulator>
  406.                 E6, F6, EE, FE = INC = increment memory by 1B
  407.                             E8 = INX = increment X register by 1B
  408.                             C8 = INY = increment Y register by 1J
  409.                         4C, 6C = JMP = unconditional jump to new addressM
  410. K                            20 = JSR = jump to new address and save return     
  411. addressM
  412. A9, A5, B5, AD, BD, B9, A1, B1 = LDA = load the the accumulator with memoryD
  413.             A2, A6, B6, AE, BE = LDX = load X register with memoryD
  414.             A0, A4, B4, AC, BC = LDY = load Y register with memoryO
  415. M            4A, 46, 56, 4E, 5E = LSR = shift memory or the accumulator 1 bit 
  416. to right5
  417.                             EA = NOP = no operationE
  418. C09, 05, 15, 0D, 1D, 19, 01, 11 = ORA = logically OR memory and the 
  419. accumulatorM
  420.                             48 = PHA = push the accumulator to top of stackM
  421.                             08 = PHP = push status register to top of stackM
  422.                             68 = PLA = pull top of stack to the accumulatorM
  423.                             28 = PLP = pull top of stack to status registerP
  424. N            2A, 26, 36, 2E, 3E = ROL = rotate memory or the accumulator 1 bit     
  425. to leftP
  426. N            6A, 66, 76, 6E, 7E = ROR = rotate memory or the accumulator 1 bit 
  427. to right>
  428.                             40 = RTI = return from interrupt?
  429.                             60 = RTS = return from subroutineN
  430. LE9, E5, F5, ED, FD, F9, E1, F1 = SBC = subtract memory from the accumulator 
  431. with borrow7
  432.                             38 = SEC = set carry flagD
  433.                             F8 = SED = set decimal arithmetic modeC
  434.                             78 = SEI = set disable interrupt flagH
  435.     85, 95, 8D, 9D, 99, 81, 91 = STA = store the accumulator in memoryC
  436.                     86, 96, 8E = STX = store X register in memoryC
  437.                     84, 94, 8C = STY = store Y register in memoryO
  438.                             AA = TAX = transfer the accumulator to X registerO
  439.                             A8 = TAY = transfer the accumulator to Y registerM
  440.                             BA = TSX = transfer stack pointer to X registerO
  441.                             8A = TXA = transfer X register to the accumulatorM
  442.                             9A = TXS = transfer X register to stack pointerO
  443.                             98 = TYA = transfer Y register to the accumulator
  444. M_____________________________________________________________________________$
  445. __________________________________
  446. HEXADECIMAL/DECIMAL CONVERSION CHART
  447. LSD     MSD >>M
  448. \/  1    2    3    4    5    6    7    8    9    A    B    C    D    E    FN
  449.    -------------------------------------------------------------------------N
  450. 0 | 16   32   48   64   80   96  112  128  144  160  176  192  208  224  240
  451. 1 | 17   33   49   65   81   97  113  129  145  161  177  193  209  225  241
  452. 2 | 18   34   50   66   82   98  114  130  146  162  178  194  210  226  242
  453. 3 | 19   35   51   67   83   99  115  131  147  163  179  195  211  227  243
  454. 4 | 20   36   52   68   84  100  116  132  148  164  180  196  212  228  244
  455. 5 | 21   37   53   69   85  101  117  133  149  165  181  197  213  229  245
  456. 6 | 22   38   54   70   86  102  118  134  150  166  182  198  214  230  246
  457. 7 | 23   39   55   71   87  103  119  135  151  167  183  199  215  231  247
  458. 8 | 24   40   56   72   88  104  120  136  152  168  184  200  216  232  248
  459. 9 | 25   41   57   73   89  105  121  137  153  169  185  201  217  233  249
  460. A | 26   42   58   74   90  106  122  138  154  170  186  202  218  234  250
  461. B | 27   43   59   75   91  107  123  139  155  171  187  203  219  235  251
  462. C | 28   44   60   76   92  108  124  140  156  172  188  204  220  236  252
  463. D | 29   45   61   77   93  109  125  141  157  173  189  205  221  237  253
  464. E | 30   46   62   78   94  110  126  142  158  174  190  206  222  238  254
  465. F | 31   47   63   79   95  111  127  143  159  175  191  207  223  239  255
  466.